package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.query.CommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICommentService {
    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(CommentQueryObject qo);

    /**
     * 新增和编辑
     * @param comment
     */
    void saveOrUpdate(Comment comment);


    List<Comment> listAll();

    Comment get(Long id);

    void saveOrUpdate(Comment comment, String[] tags);

    Integer queryCountByStrategyCommentId(Long strategyCommentId);
}

